<form action="" class="form-horizontal" data-toggle="validator" id="add-form" method="POST" role="form">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">托管名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control" data-rule="required" name="row[domain_title]" placeholder="托管名称"
                   type="text" value="">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">编码(校区)(中文):</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input class="form-control" data-rule="required" name="row[code]" placeholder="请输入编码(校区)"-->
<!--                   type="text" value="">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">域名:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control" data-rule="required" name="row[domain_url]" placeholder="请输入域名"
                   type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="c-image">托管logo:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input class="form-control" data-rule="" id="c-image" name="row[logo]" size="50" type="text"
                       value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
                                  data-preview-id="p-image"
                                  id="faupload-image" type="button"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*"
                                  data-multiple="false" id="fachoose-image" type="button"><i
                            class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">手机号:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile" class="form-control" name="row[mobile]" type="text" placeholder="请输入手机号" value="">
        </div>
    </div>
    <div class="form-group">

        <label for="" class="control-label col-xs-12 col-sm-2">托管地址</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control"  id="address" name="row[address]" placeholder="地址" value="">
            <input type="text" class="form-control" name="row[longitude]" id="lng" value="" placeholder="经度">
            <input type="text" class="form-control" name="row[latitude]" id="lat" placeholder="纬度" value="">
            <button type="button" class="btn btn-primary" data-toggle='addresspicker' data-input-id="address" data-lng-id="lng" data-lat-id="lat">点击选择地址获取经纬度</button>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">状态:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[url_status]', [1=>'开启', 0=>'关闭'],1)}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button class="btn btn-success btn-embossed " type="submit">{:__('OK')}</button>
            <button class="btn btn-default btn-embossed" type="reset">{:__('Reset')}</button>
        </div>
    </div>
</form>
